/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */

#ifndef __BLENDER_MESH_LOADER_H__
#define __BLENDER_MESH_LOADER_H__

#include "GPrerequisites.h"
#include "OgreResource.h"

#include "blender.h"
#include "bMain.h"
#include "bBlenderFile.h"


namespace GNgine
{
	/** Mesh Loader that manual load blender file.
        @remarks
			Use this class to load blender mesh data into ogre.
    */
	class BlenderMeshLoader 
		: public Ogre::ManualResourceLoader
	{
	public:
		BlenderMeshLoader(bParse::bBlenderFile *fp, Blender::Object *blender);
		virtual ~BlenderMeshLoader();

		void loadResource(Ogre::Resource* resource);
	private:
		bParse::bBlenderFile *_file;
		Blender::Object *_object;

	};
}

#endif
